<h1>Listing feedbacks</h1>

<table>
  <tr>
    <th>Username</th>
    <th>User</th>
    <th>Subject</th>
    <th>Content</th>
    <th>Created at</th>
  </tr>
  
<% for feedback in @feedbacks %>
  <tr>
    <td><%=h feedback.username %></td>
    <td><%=h feedback.user_id %></td>
    <td><%=h feedback.subject %></td>
    <td><%=h feedback.content %></td>
    <td><%=h feedback.created_at %></td>
    <td><%= link_to 'Show', feedback_path(feedback) %></td>
    <td><%= link_to 'Edit', edit_feedback_path(feedback) %></td>
    <td><%= link_to 'Destroy', feedback_path(feedback), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New feedback', new_feedback_path %>